<?php if ($listActions = $this->configuration->getValue('list.batch_actions')): ?>
      <li class="sf_admin_batch_actions_choice">
        <table>
          <td>
            <select name="batch_action" style="width: 180px;">
              <option value="">[?php echo __('Choose an action', array(), 'sf_admin') ?]</option>
              <?php foreach ((array) $listActions as $action => $params): ?>
                <?php echo $this->addCredentialCondition('<option value="'.$action.'">[?php echo __(\''.$params['label'].'\', array(), \'sf_admin\') ?]</option>', $params) ?>

              <?php endforeach; ?>
            </select>
          </td>

          [?php $form = new sfForm(); if ($form->isCSRFProtected()): ?]
            <input type="hidden" name="[?php echo $form->getCSRFFieldName() ?]" value="[?php echo $form->getCSRFToken() ?]" />
          [?php endif; ?]
          <td>
            <input type="submit" value="[?php echo __('go', array(), 'sf_admin') ?]" />
          </td>
        </table>
      </li>
<?php endif; ?>
